package net.caidingke.shepherd.domain.repo;

import io.ebean.EbeanServer;
import io.ebean.Finder;

/**
 * @author bowen
 */
public abstract class AbstractBeanFinder<I,T> extends Finder<I,T> {

    protected final EbeanServer server;

    public AbstractBeanFinder(Class<T> type, EbeanServer server) {
        super(type);
        this.server = server;
    }

    @Override
    public EbeanServer db() {
        return server;
    }}
